﻿/// <reference path="../../Scripts/typings/jquery/jquery.d.ts" />
/// <reference path="dock_menu.ts" /> 
/*
class MainMenu {
    stage

    constructor(){
        this.stage = new createjs.Stage("demoCanvas");
        this.stage.enableMouseOver();

        // tickers
        createjs.Ticker.removeAllEventListeners();
        createjs.Ticker.on("tick", this.tick);
        createjs.Ticker.setFPS(30);
        $.ajax({
            type: "GET",
            crossDomain: false,  //edit du 25/01 : cette propriété doit être passée à false. 
            url: "assets/xml/menu/menu_principal.xml",
            dataType: "xml",
            success: this.init
        });
    }

    init(data) {
        var menu = new DockMenu(data, 60, 80);
        menu.x = 180;
        menu.y = 200;
        this.stage.addChild(menu);
        this.stage.update();
        alert("init done");
    }

    tick() {
        this.stage.tick();
    }
}
*/